package cn.tedu.submarine;

import javax.swing.ImageIcon;


public class Mine extends SeaObject {

    public Mine(int x, int y) {
        super(11, 11, x, y, 1);
    }

    public void move() {
        y -= speed;//向上移动
    }

    public ImageIcon getImage() {
        return Images.mine;

    }
    public boolean isOutOfBounds(){
        return y<=150-height;
    }
    public int getLife(){
        return -1;
}}
